import { Module, Global } from '@nestjs/common';
import { ArticleService } from './article.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Article } from './article.entity';
import { ArticleComment } from './article.comment.entity';


@Global()
@Module({
  imports: [
    TypeOrmModule.forFeature([Article]),
    TypeOrmModule.forFeature([ArticleComment]),
  ],
  providers: [ArticleService],
  exports:  [ArticleService],
})
export class ArticleModule {}
